package com.panda.admin.constant;

/**
 * author: tcy
 * createDate: 2022/10/26
 * description:鉴权登录常量
 */
public class SecurityConstants {
    public static final String DETAILS_USER_ID = "user_id";
    public static final String DETAILS_USERNAME = "user_name";
    public static final String DETAILS_NICKNAME = "nick_name";
    public static final String OPEN_ID = "open_id";
    public static final String ROLE_ID = "role_id";
    public static final String MOBILE = "mobile";
    public static final String EMAIL = "email";
    public static final String ICON_URL = "icon_url";
    public static final String AUTHORIZATION_HEADER = "authorization";
    public static final String BASIC_PREFIX = "bearer ";
    public static final String GRANT_TYPE_KEY = "grant_type";

    public static final String TEST_CLIENT_ID = "client";
    public static final String AUTHORITY_PREFIX = "ROLE_";
    public static final String JWT_AUTHORITIES_KEY = "Authorization";
    public static final String JWT_PAYLOAD_KEY = "payload";
    public static final String JWT_JTI = "jti";

    public SecurityConstants() {
    }
}
